<div class="account__head account__head--user-active">
<div class="span5 span14-mobile account__head__user">
    <div class="account__signout hide-desktop hide-tablet"><button class="button button--dark">退出</button></div>
    <div class="hide-desktop hide-tablet account__head-switch"><button class="button  button--go">Company profile</button></div>
    <header class="hide-mobile account__head__label">@lang('web.your_user')</header>
    <h2 class="account__head__name">{{\Illuminate\Support\Facades\Auth::user()->name}}</h2>
    <ol class="account__head__menu">
        <li>{{--
            <a href="{{route('user_index')}}">@lang('web.account')</a>--}}
        </li>
    </ol>
</div>
<div class="span9 span14-mobile account__head__profile">

    <div class="account__signout"><button class="button button--dark" onclick="event.preventDefault();
                                                     document.getElementById('logout-form').submit();">@lang('web.logout')</button></div>
    <div class="hide-desktop hide-tablet account__head-switch"><button class="button  button--go-back">User profile</button></div>

    <form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
        {{ csrf_field() }}
    </form>
    <!--头部切换-->
    <ol class="account__head__menu">

        <li>
            <a href="{{route('writing_list')}}" class="{{active_class(if_route('writing_list'))}}">
                <font style="vertical-align: inherit;">
                    <font style="vertical-align: inherit;">@lang('web.writing_list')</font>
                </font>
            </a>
        </li>
        <li>
            <a href="{{route('upload_writing')}}" class="{{active_class(if_route('upload_writing'))}}">
                <font style="vertical-align: inherit;">
                    <font style="vertical-align: inherit;">@lang('web.upload_writing')</font>
                </font>
            </a>
        </li>

        <li>
            <a href="{{route('user_reset_password')}}" class="{{active_class(if_route('user_reset_password'))}}">
                <font style="vertical-align: inherit;">
                    <font style="vertical-align: inherit;">@lang('web.user_info')</font>
                </font>
            </a>
        </li>
        @if(if_route('writing_edit'))
            <li>
                <a href="{{route('writing_edit')}}" class="{{active_class(if_route('writing_edit'))}}">
                    <font style="vertical-align: inherit;">
                        <font style="vertical-align: inherit;">@lang('web.upload_writing_edit')</font>
                    </font>
                </a>
            </li>
            @endif
    {{--    <li>
            <a href="###"  >
                <font style="vertical-align: inherit;">
                    <font style="vertical-align: inherit;">消息通知</font>
                </font>
            </a>
        </li>--}}
        <li>
        @can('login')
            <a href="{{route('admin_index')}}"  target="_blank">
                <font style="vertical-align: inherit;">
                    <font style="vertical-align: inherit;">@lang('web.admin_login')</font>
                </font>
            </a>
            @endcan
        </li>
    </ol>
    <!--end-->
</div>
<div class="cf"></div>
</div>
<div class="account-splitter ">
    <div class="pixel-pattern pixel-pattern--01 span5 span5-tablet span7-mobile"></div>
</div>